#include "exceptions.h"
#include <stdlib.h>
#include <string.h>

TException::TException(int number, const string &message)
{
    #ifdef _DEBUG
    if (getenv("_") != 0 && (strcmp(getenv("_"), "/usr/bin/gdb") == 0 || strcmp(getenv("_"), "/usr/bin/nemiver") == 0))
        std::cerr << "Exception " << number << ": " << message << std::endl;
    #endif
    this->number = number;
    this->message = message;
}

TException::TException(int number) 
{
    TException(number, "Unknown");
}

TException::TException(const string &message)
{
    TException(0, message);
}

